<?php
$this->title = 'Modifier un Pilote';
$this->headTitle($this->title);
echo $this->partial('partial/menucrudpilote.phtml');
echo "<h1>Modifier un Pilote</h1>";
if($this->form)
{
	$this->form->setAction($this->url());
	echo $this->form;
}
else
{
	echo "<ul class='listecentre'>";
	foreach($this->pilotes as $pilote)
	{
		$photos = $pilote->getPhotos();
		echo "<li><a href=\"".$this->url(array('id'=>$pilote->getPilNum()),'updatepilote')."\">".$pilote->getPilPrenom()." ".$pilote->getPilNom()."</a><img src=\"".$this->url(array('path'=>urlencode($this->serverUrl().$this->baseUrl()."/images/pilote/".$photos[0]->getPhoAdresse()),'width'=>32,'height'=>32),'thumb')."\" alt=\"".$pilote->getPilPrenom()." ".$pilote->getPilNom()."\"/></li>";
	}
	echo "</ul>";
}
